package reflect15.proxy;

interface Sfur
{
	public void browse();
}

class RealNet implements Sfur
{
	public void browse()
	{
		System.out.print("浏览");
	}
}

class Proxy implements Sfur
{
	
	Sfur sfur = null;
	public Proxy(Sfur sfur)
	{
		this.sfur = sfur;
	}
	public void browse()
	{
		this.sfur.browse();
	}
	
}

public class ProxyDemo01
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		Sfur sfur = new Proxy(new RealNet());
		sfur.browse();

	}

}
